//入口文件
console.log("ok")
import Vue from 'vue'
// 1.1导入路由包
import VueRouter from 'vue-router'
// 1.2安装路由
Vue.use(VueRouter)
    // 导入mui样式
import './lib/mui/css/mui.css'
import './lib/mui/css/icons-extra.css'

// 按需导入mint-ui中的组件
import { Header, Swipe, SwipeItem } from 'mint-ui'
Vue.component(Header.name, Header)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)

// 1.3导入自己的router.js模块
import router from './router'

// 2.1导入 vue-resource


import VueResource from 'vue-resource'
//2.2安装 vue-resource
Vue.use(VueResource)
    // 导入app根组件
import app from './App.vue'
var vm = new Vue({
    el: "#app",
    render: c => c(app),
    router //1.4挂在路由对象到vm上
})